import fileinput

file_list=["example.txt","test.txt"]
with fileinput.input(files=file_list) as f:
    for line in f:
        print(line,end='')
